package BO;

import org.newdawn.slick.Image;

public class Flamme {
	//Attributs de la classe Bombe
	private int x;
	private int y;
	private Image image_explosion = null;
	private long temps_explose = 0;
	//Constante 
	private final long DELAI = 100;
		
	public Flamme(int p_x,int p_y,Image p_image_explosion,long p_time){
		x = p_x;
		y = p_y;
		image_explosion = p_image_explosion;
		temps_explose = p_time + DELAI;
	}
	
	public boolean TimeExplose(long p_time){
		boolean retour = false;
		if (temps_explose <= p_time)
			retour = true;
		return retour;
	}
	
	public void DessinerFlamme(){
		this.image_explosion.draw(x,y);
	}
}
